import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
    state: {
        title: '全栈2006B',
        list: [
            {
                text: '商品列表', id: '1', url: 'Shop',
                y: ['213', '123', '234']
            },
            {
                text: '订单列表', id: '2', url: 'Order',
                y: ['213', '123', '234']
            },
            {
                text: '财务列表', id: '3', url: 'Money',
                y: ['213', '123', '234']
            },
            {
                text: '用户列表', id: '4', url: 'Users',
                y: ['213', '123', '234']
            },
        ]
    },
    getters: {
        getList(state) {
            return state.list
        }
    },
    mutations: {},
    actions: {},
    modules: {}
})
